const { createProxyMiddleware } = require('http-proxy-middleware')

module.exports = function (app) {
    app.use(
        // 代理路径
        '/api',
        createProxyMiddleware({
            // 代理的远程服务器地址
            target: "http://kumanxuan1.f3322.net:8001",
            changeOrigin: true
        })
    )
}